package com.serverTechnology.teamsGroups.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产线模型
 * </p>
 *
 * @author 王凯炫
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TE_PRO_MODEL")
@ApiModel(value="TeProModel对象", description="产线模型")
public class ProModel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "父ID")
    @TableField("PID")
    @ChineseDescription("父ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long pid;

    @ApiModelProperty(value = "模型名字")
    @TableField("MODEL_NAME")
    private String modelName;

    @ApiModelProperty(value = "单元编码")
    @TableField("ENCODING")
    private String encoding;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "排序号")
    @TableField("SORT_NO")
    @ChineseDescription("排序号")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long sortNo;


    @ApiModelProperty(value = "节点类型(0:产线,1:工区,2:单元）")
    @TableField("TYPE")
    @ChineseDescription("节点类型(0:产线,1:工区,2:单元）")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long type;


}
